package com.budwk.app.sqfw.northstation.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * @author wizzer(wizzer.cn) on 2016/7/1.
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Table("shequ.ns_trackrecord")
@ApiModel(description = "设备记录表")
public class Ns_trackrecord extends BaseModel implements Serializable {

    @Name
    @Comment("编号")
    @Column("id")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
//    @PrevInsert(uu32 = true, nullEffective = true)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;

    
    @Comment("deviceid")
    @Column("deviceid")
    @ApiModelProperty(description = "设备ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String deviceid;

    @Comment("设备名字")
    @Column("name")
    @ApiModelProperty(description = "设备名字")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String name;

    
    @Comment("经度")
    @Column("latitude")
    @ApiModelProperty(description = "经度")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String latitude;

    
    @Comment("维度")
    @Column("longitude")
    @ApiModelProperty(description = "维度")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String longitude;

    
    @Comment("设备类型")
    @Column("type")
    @ApiModelProperty(description = "设备类型")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String type;

    
    @Comment("设备名字")
    @Column("username")
    @ApiModelProperty(description = "设备名字")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String username;

    
    @Comment("设备名字")
    @Column("userid")
    @ApiModelProperty(description = "设备名字")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String userid;


}
